package com.xetlab.zk.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author xingyi
 */
@ConfigurationProperties(prefix = "zk")
public class ZkProperties {
    private String connectString;
    private Integer connectionTimeoutMs;
    private Integer sessionTimeoutMs;

    public String getConnectString() {
        return connectString;
    }

    public void setConnectString(String connectString) {
        this.connectString = connectString;
    }

    public Integer getConnectionTimeoutMs() {
        return connectionTimeoutMs;
    }

    public void setConnectionTimeoutMs(Integer connectionTimeoutMs) {
        this.connectionTimeoutMs = connectionTimeoutMs;
    }

    public Integer getSessionTimeoutMs() {
        return sessionTimeoutMs;
    }

    public void setSessionTimeoutMs(Integer sessionTimeoutMs) {
        this.sessionTimeoutMs = sessionTimeoutMs;
    }
}
